/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ifpb.pod.servidor.precistence;

import java.util.List;
import java.util.Map;

/**
 *
 * @author Diogenes
 */
public interface DAO {

    public Boolean salvar(Object object);
    public Boolean remover(Object object);
    public Boolean atualizar(Object object);
    public <T> T  buscar (Class<T> classe, Object id);
    public <T> List<T> buscarTodos(Class<T> classe);
    public <T> T executeSingleQuery(Class<T> classe, String namedQuery, Map<Integer, Object> parametros);
    public <T> List<T> executeMultiplyQuery(Class<T> classe, String namedQuery, Map<Integer, Object> parametros);

}
